<?php /* Smarty version Smarty-3.1.12, created on 2013-05-01 19:40:51
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/index/loggedIn/upcomingEvents.tpl" */ ?>
<?php /*%%SmartyHeaderCode:42442549517966725a1c40-28319530%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c14955a6e0024bed5b5e7a0f6bedf45089d2fd78' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/index/loggedIn/upcomingEvents.tpl',
      1 => 1367428087,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '42442549517966725a1c40-28319530',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_517966725a3739_58653644',
  'variables' => 
  array (
    'data' => 0,
    'date' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_517966725a3739_58653644')) {function content_517966725a3739_58653644($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/www/htdocs/w00fc40b/dota2league/Smarty/plugins/modifier.date_format.php';
?><?php if (count($_smarty_tpl->tpl_vars['data']->value)>0&&is_array($_smarty_tpl->tpl_vars['data']->value)){?>

<div id="upcomingEvents" align="center" class="">
	<h2>Upcoming Events</h2>
	<div class="" style="height: 230px">
		<p>
			Next Event: <span class="label label-inverse"><?php echo $_smarty_tpl->tpl_vars['data']->value['Name'];?>
</span>
		</p>
		<div class="row-fluid" align="center">
			<div class="span4">
				<div>
					<strong>Starting at</strong>
				</div>
				<div style="font-size: 13px;"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['data']->value['StartTimestamp'],"%d.%m.
					- %H:%M");?>
</div>
			</div>
			<div class="span2">
				<div class="t" title="Match-Mode">
					<strong>MM</strong>
				</div>
				<div class="t badge badge-info" title="<?php echo $_smarty_tpl->tpl_vars['data']->value['MatchModeName'];?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value['MMShortcut'];?>
</div>

			</div>
			<div class="span2">
				<div class="t" title="Region">
					<strong>RE</strong>
				</div>
				<div class="t badge badge-important" title="<?php echo $_smarty_tpl->tpl_vars['data']->value['RegionName'];?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value['RShortcut'];?>
</div>
			</div>
			<div class="span2">
				<div class="t" title="Tournament-Type">
					<strong>TT</strong>
				</div>
				<div class="t badge badge-warning" title="<?php echo $_smarty_tpl->tpl_vars['data']->value['TTName'];?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value['TTShortcut'];?>
</div>
			</div>
			<div class="span2">
				<div class="t" title="Min Players">
					<strong>MP</strong>
				</div>
				<div class="label"><?php echo $_smarty_tpl->tpl_vars['data']->value['MinSubmissions'];?>
</div>
			</div>
		</div>
		
			<div class="row-fluid">
				<div class="span8">
				<h3>
					
					<script type="text/javascript">
						
						$(document).ready(function() {
							// create a new javascript Date object based on the timestamp
							// multiplied by 1000 so that the argument is in milliseconds, not seconds
							var date = new Date(<?php echo $_smarty_tpl->tpl_vars['date']->value['StartSubmissionTimestamp'];?>
*1000);
							// hours part from the timestamp
							var hours = date.getHours();
							// minutes part from the timestamp
							var minutes = date.getMinutes();
							// seconds part from the timestamp
							var seconds = date.getSeconds();
							
							$('#eventClock').countdown({until: liftoffTime, format: 'dHM'});
						});
						
					</script>
					<span id="eventClock"></span>
				</h3>
				</div>
				<div class="span4">
					 <div class="label label-important t" title="XXX Players already singed-in to this Event" style="margin-top:20px">XXX Players</div>
				</div>
			</div>
			
		
		<strong>Description:</strong>
		<p class="well well-small" style="overflow: auto; max-height: 50px;"><?php echo $_smarty_tpl->tpl_vars['data']->value['Description'];?>
</p>
	</div>
	<div>
		<button class="btn btn-block btn-primary disabled">Join Event</button>
	</div>

</div>

<?php }?>
<?php }} ?>